import java.util.Scanner;

public class demo11 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个五位数");
        int a=sc.nextInt();

        int g = a % 10;
        int s = a / 10 % 10;
        int b = a / 100 % 10;
        int q = a / 1000 % 10;
        int w = a / 10000;

        if (g==w && s==q){
            System.out.println(a+"是一个回文数");
        }else{
            System.out.println(a+"不是一个回文数");
        }

    }
}
